import 'package:dio/dio.dart';

class BaseUrl {
  static const String baseUrl = "https://www.fkgou.com";

  //喜欢商品

  static final dio = Dio(); // With default `Options`.

  void configureDio() {
    // Update default configs.
    dio.options.baseUrl = baseUrl;
    dio.options.connectTimeout = Duration(seconds: 5);
    dio.options.receiveTimeout = Duration(seconds: 3);

    // Or create `Dio` with a `BaseOptions` instance.
    final options = BaseOptions(
      baseUrl: baseUrl,
      connectTimeout: Duration(seconds: 5),
      receiveTimeout: Duration(seconds: 3),
    );
    final anotherDio = Dio(options);
  }
}
